package com.my.fp.list;

import java.util.Arrays;

/**
 * @author: marshal
 * @date: 2022-09-28 17:10
 */
public class SumTest {
    public static void main(String[] args) {
        int[] nums = {1, 2, 3, 4, 5, 6, 7, 9, 10};
        int sum = Arrays.stream(nums).sum();
        System.out.println(sum);
    }
}
